package org.jeecg.modules.engine.mapper;

import java.util.List;
import org.jeecg.modules.engine.entity.Requirement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 需求表
 * @Author: jeecg-boot
 * @Date:   2020-07-20
 * @Version: V1.0
 */
public interface RequirementMapper extends BaseMapper<Requirement> {

	boolean deleteByMainId(@Param("mainId") String mainId);

	List<Requirement> selectByMainId(@Param("mainId") String mainId);

	Requirement getFirstRequirement(@Param("engineeringId") String engineeringId,@Param("currentDay") String currentDay);

	Integer getRequirementNoIndex(@Param("currentDay") String currentDay);

}
